import React, { Component } from 'react'
import { Tag, Divider } from 'antd'
export default class TopicTag extends Component {
  render() {
    const { tab } = this.props
    return (
      <span className='tagName'>
        {tab == 'top' ? (
          <Tag color='gold'>顶置</Tag>
        ) : (
          tab == 'share'?
          <Tag color='orange'>分享</Tag>
          :(
            tab == 'ask'?
            <Tag color='green'>问答</Tag>:
            (tab == 'job'?
            <Tag color='#f50'>招聘</Tag>:
            <Tag color='#2db7f5'>测试</Tag>)
          )
        )}
      </span>
    )
  }
}
